home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / glibc108.zip / glibc108 / posix / posix2_lim.h < prev    next >
C/C++ Source or Header  |  1991-06-12  |  3KB  |  83 lines

  1. /* Copyright (C) 1991 Free Software Foundation, Inc.
  2. This file is part of the GNU C Library.
  3.  
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public License as
  6. published by the Free Software Foundation; either version 2 of the
  7. License, or (at your option) any later version.
  8.  
  9. The GNU C Library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12. Library General Public License for more details.
  13.  
  14. You should have received a copy of the GNU Library General Public
  15. License along with the GNU C Library; see the file COPYING.LIB.  If
  16. not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  17. Cambridge, MA 02139, USA.  */
  18.  
  19. #ifndef    _POSIX2_LIMITS_H
  20.  
  21. #define    _POSIX2_LIMITS_H    1
  22.  
  23.  
  24. /* The maximum `ibase' and `obase' values allowed by the `bc' utility.  */
  25. #define    _POSIX2_BC_BASE_MAX    99
  26.  
  27. /* The maximum number of elements allowed in an array by the `bc' utility.  */
  28. #define    _POSIX2_BC_DIM_MAX    2048
  29.  
  30. /* The maximum `scale' value allowed by the `bc' utility.  */
  31. #define    _POSIX2_BC_SCALE_MAX    99
  32.  
  33. /* The maximum length of a string constant accepted by the `bc' utility.  */
  34. #define    _POSIX2_BC_STRING_MAX    1000
  35.  
  36. /* The maximum number of weights that can be assigned to an entry of
  37.    the LC_COLLATE category `order' keyword in a locale definition.  */
  38. #define    _POSIX2_EQUIV_CLASS_MAX    2
  39.  
  40. /* The maximum number of expressions that can be nested
  41.    within parentheses by the `expr' utility.  */
  42. #define    _POSIX2_EXPR_NEST_MAX    32
  43.  
  44. /* The maximum length, in bytes, of an input line.  */
  45. #define    _POSIX2_LINE_MAX    2048
  46.  
  47. /* The maximum number of repeated occurrences of a regular expression
  48.    permitted when using the interval notation `\{M,N\}'.  */
  49. #define    _POSIX2_RE_DUP_MAX    255
  50.  
  51.  
  52. /* These values are implementation-specific,
  53.    and may vary within the implementation.
  54.    Their precise values can be obtained from sysconf.  */
  55.  
  56. #ifndef    BC_BASE_MAX
  57. #define    BC_BASE_MAX    _POSIX2_BC_BASE_MAX
  58. #endif
  59. #ifndef    BC_DIM_MAX
  60. #define    BC_DIM_MAX    _POSIX2_BC_DIM_MAX
  61. #endif
  62. #ifndef    BC_SCALE_MAX
  63. #define    BC_SCALE_MAX    _POSIX2_BC_SCALE_MAX
  64. #endif
  65. #ifndef    BC_STRING_MAX
  66. #define    BC_STRING_MAX    _POSIX2_BC_STRING_MAX
  67. #endif
  68. #ifndef    EQUIV_CLASS_MAX
  69. #define    EQUIV_CLASS_MAX    _POSIX2_EQUIV_CLASS_MAX
  70. #endif
  71. #ifndef    EXPR_NEST_MAX
  72. #define    EXPR_NEST_MAX    _POSIX2_EXPR_NEST_MAX
  73. #endif
  74. #ifndef    LINE_MAX
  75. #define    LINE_MAX    _POSIX2_LINE_MAX
  76. #endif
  77. #ifndef    RE_DUP_MAX
  78. #define    RE_DUP_MAX    _POSIX2_RE_DUP_MAX
  79. #endif
  80.  
  81.  
  82. #endif    /* posix2_limits.h */
  83.